<div class="xf-upload {$class_row|default='mb-3'}">
  <label class="{$class_label|default='form-label'}" for="{$name}">{$title}</label>
  <div class="input-group {$class_input|default='input-group-sm'}">
    <input class="form-control" name="{$name}" id="{$name}" type="text" value="{$value}" placeholder="{$placeholder}" autocomplete="off" {if $readonly}readonly{/if} {if $disabled} disabled{/if}>
    <input class="d-none" type="file" accept="image/*" id="{$name}_image" data-target="#{$name}" data-path="{:xfUrl('home/upload/image',$thumb)}">
    <button class="btn btn-outline-secondary xf-btn-preview {if !$value}d-none{/if}" type="button" data-target="#{$name}">预览</button>
    <button class="btn btn-secondary xf-btn-upload" type="button" data-target="#{$name}_image">上传</button>
  </div>
</div>